package com.cly.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cly.entity.Post;
import com.cly.result.JsonRequest;
import com.cly.statistics.LineStatistics;
import com.cly.statistics.PieStatistics;
import com.cly.statistics.SumStatistics;

import java.util.List;

/**
 * 岗位统计服务
 *
 * @author by 春风能解释
 * <p>
 * 2025/2/6
 */
public interface IPostStatisticsService extends IService<Post> {

    /**
     * 岗位30天趋势统计
     *
     * @return JSON
     */
    JsonRequest<LineStatistics<String, Long>> statisticsTrend();

    /**
     * 岗位总数统计
     *
     * @return JSON
     */
    JsonRequest<List<SumStatistics<Long>>> sumStatisticsPost();

    /**
     * 岗位地区统计
     *
     * @return JSON
     */
    JsonRequest<List<PieStatistics<Long>>> postStatisticsDistrict();
}
